﻿<%@ Page Title="" Language="C#" MasterPageFile="~/SISGEZATBZ.Master" AutoEventWireup="true" CodeBehind="FrmPagos.aspx.cs" Inherits="SISGEZATBZVisual.Web.Maestros.FrmPagos" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <style type="text/css">
        .auto-style1 {
            height: 25px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="Main" runat="server">
    
    <%--Datos del pago--%>
    <asp:UpdatePanel ID ="UpdatePanel1" runat="server">
        <ContentTemplate>
            <table>
            	<tr>
                    <td colspan="2">
                        <b>Datos del Pago</b>
                    </td>

            	</tr>
                <tr>
                    <td><b>Tipo de Pago:</b>&nbsp;</td>
                    <td>
                        <asp:DropDownList runat="server" ID="ddlTipoPago"
                            Width="12em"
                            ItemType="SISGEZATBZVisual.BusinessEntities.TipoPago"
                            SelectMethod="GetTipoPago"
                            DataTextField="NombrePago"
                            DataValueField="Id"
                            AppendDataBoundItems="True"
                            AutoPostBack="True" OnTextChanged="ddlTipoPago_TextChanged">
                            <asp:ListItem Value="0" Text=""/>
                        </asp:DropDownList>
                    </td>

                    <td><b>Fecha:</b>&nbsp;</td>
            		<td><asp:DropDownList runat="server" ID="ddlFecha" Width="12em"/>&nbsp;</td>

                    <td><b>Nro Boleta:</b>&nbsp;</td>
            		<td><asp:TextBox runat="server" ID="txtNroBoleta"/>&nbsp;</td>

            	</tr>
            	<tr>
            		<td colspan="4"></td>
                    <td><b>Importe:</b>&nbsp;</td>
                    <td><asp:TextBox runat="server" ID="txtImporte"/>&nbsp;</td>
            	</tr>
            </table>
        </ContentTemplate>
    </asp:UpdatePanel>

    <%--Datos del Alumno--%>

    <asp:UpdatePanel ID="UpdatePanel2" runat="server">
        <ContentTemplate>
            <table>
            	<tr>
            		<td colspan="2">
                        <b>Datos del Alumno</b>&nbsp;
            		</td>
            	</tr>
                <tr>
            		<td><b>Tipo de Documento:</b>&nbsp;</td>
                    <td><asp:DropDownList runat="server" ID="ddlTipoDocumento" Width="12em">
                            <asp:ListItem Text="DNI"/>
                            <asp:ListItem Text="RUC"/>
                        </asp:DropDownList>
                    </td>
            		
                    <td><b>Nro Documento:</b>&nbsp;</td>
            		<td><asp:TextBox runat="server" ID="txtNroDocumento"/>&nbsp;</td>
            		
                    <td>
                        <asp:Button runat="server" Text="Buscar" ID="btnBuscar" OnClick="btnBuscar_Click" />
            		    <asp:Button runat="server" Text ="..." ID="btnIrABuscarAlumno"/>
            		</td>
            		
                    <td>
                        <asp:Button runat="server" Text="+" ID="btnAñadir" />
            		</td>
            	</tr>
            	<tr>
            		<td><b>Nombres Completos:</b>&nbsp;</td>
            		<td colspan="3">
                        <asp:TextBox runat="server" ID="txtNombres" Width="31em"/>&nbsp;
            		</td>
            	</tr>
            </table>
        </ContentTemplate>
    </asp:UpdatePanel>

    <%--Detalle de Pago--%>

    <asp:UpdatePanel ID="UpdatePanel3" runat="server">
        <ContentTemplate>
<%--            <asp:ListView runat="server" ID="lvDetallePago"
            DataKeyNames="Id"
            ItemType="SISGEZATBZVisual.BusinessEntities.AlumnoPago"
            SelectMethod="GetAlumnoPago" OnSelectedIndexChanged="lvDetallePago_SelectedIndexChanged">
            <LayoutTemplate>
                <table>
                    <thead>
                        <tr>
                            <th>Nro Documento</th>
                            <th>Nombres Completos</th>
                            <th>Tipo de Pago</th>
                            <th>Acciones</th>
                        </tr>
                    </thead>
                    <tbody>
                        <tr id="itemPlaceholder" runat="server"/>
                    </tbody>
                </table>
            </LayoutTemplate>
            <ItemTemplate>
                <tr>
                    <td><%# Item.Id %></td>
                    <td><%# Item.NroHabitacion %></td>
                    <td><%# Item.CostoDia %></td>
                    <td>
                        <a href="FrmHabitacion.aspx?acc=eliminar&id=<%# Item.Id %>"
                            onclick="return confirm('Desea Eliminar la Habitación Nro: ' + <%# Item.NroHabitacion %>)">
                            Quitar
                        </a>
                    </td>
                </tr>
            </ItemTemplate>
        </asp:ListView>--%>
        </ContentTemplate>

    </asp:UpdatePanel>

    <asp:UpdatePanel ID="UpdatePanel4" runat="server">
        <ContentTemplate>
                 <tr>
                        <td>
                            <asp:Button runat="server" ID="btnGuardar" Text="Guardar"/>
                        </td>
                        <td>
                            <asp:Button runat="server" ID="btnCancelar" Text="Cancelar"/>
                        </td>
                </tr>  
        </ContentTemplate>
    </asp:UpdatePanel>

</asp:Content>
